using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using emp.BLL;

public partial class crm_city_CityDel : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
       
        if (!this.Page.IsPostBack)
        {
           

            if (Request["cityid"] != null && Request["cityid"] != "")
            {
             this.city_id.Value= Request["cityid"].ToString();

            }
            if (Request["pveid"] != null && Request["pveid"] != "")
            {
               this.pve_id.Value= Request["pveid"].ToString();
            }
            if (Request["curpage"] != null && Request["curpage"] != "")
            {
                this.cur_page.Value = Request["curpage"].ToString();
            }

            BCity dal = new BCity();
            if (this.city_id.Value != "")
            {
                dal.getQuestAnswerDel(Convert.ToInt32(this.city_id.Value));
                dal.getCityDel(Convert.ToInt32(this.city_id.Value));
              
                
            }
            Response.Redirect("CityList.aspx?pveid=" + this.pve_id.Value + "&curpage=" + this.cur_page.Value);
        }
    }
}
